package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
* 备货表
* @TableName WMS_BarCodeInfo_Spares
*/
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "WMS_BarCodeInfo_Spares", description = "备货表")
@TableName(value = "WMS_BarCodeInfo_Spares")
public class WmsBarcodeinfoSpares extends FBaseEntity implements Serializable {

    /**
    * 订单类型
    */
    @ApiModelProperty("订单类型")
    private Long billtype;

    /**
    * 订单主表ID
    */
    @ApiModelProperty("订单主表ID")
    private Long mainid;

    /**
    * 订单子表ID
    */
    @ApiModelProperty("订单子表ID")
    private Long subid;

    /**
    * 条码号
    */
    @ApiModelProperty("条码号")
    @Length(max= 50,message="编码长度不能超过50")
    private String barcode;

    /**
    * 物料ID
    */
    @ApiModelProperty("物料ID")
    private Long materialid;

    /**
    * 数量
    */
    @ApiModelProperty("数量")
    private BigDecimal quantity;

    /**
    * 状态
    */
    @ApiModelProperty("状态")
    private Integer status;

}
